<?php
namespace Common\Controller;
use Common\Controller\CommonController;
class TeleplayController extends CommonController
{

    /**
     * 世界排行
     */
    public function getcacherank(){

        $cache = S('telepalyrank');

        if (!empty($cache)){
            return $cache;
        }

        $cache = M('telepaly_member')->field('nickname,avatarurl,customs,rankname')->order('customs desc')->select();

        S('telepalyrank',$cache,3600);

        return $cache;
    }

}